package com.itheima.web.service.impl.cms;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.service.cms.ICmsPrefrenceAreaService;
import com.itheima.vo.cms.CmsPrefrenceArea;
import com.itheima.web.mapper.cms.CmsPrefrenceAreaMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;


/**
 * <p>
 * 优选专区 服务实现类
 * </p>
 *
 * @author 王志斌
 * @since 2022-07-06
 */
@DubboService
public class CmsPrefrenceAreaServiceImpl extends ServiceImpl<CmsPrefrenceAreaMapper, CmsPrefrenceArea> implements ICmsPrefrenceAreaService {
    @Autowired
    private CmsPrefrenceAreaMapper cmsPrefrenceAreaMapper;
    @Override
    public List<CmsPrefrenceArea> listAll() {
        LambdaQueryWrapper<CmsPrefrenceArea> queryWrapper = new LambdaQueryWrapper<>();
        List<CmsPrefrenceArea> list = cmsPrefrenceAreaMapper.selectList(queryWrapper);

        return list;
    }
}
